/*
 * @Author: tangyao
 * @Date: 2020-07-28 14:23:31
 * @LastEditTime: 2020-08-27 16:52:53
 * @LastEditors: 钟则龙
 */
import request from '@/utils/request'

/**
 * 事件预览
 */
export function getOverviewOfEarlyWarning () {
  return request({
    url: '/v3/warningAndPrediction/getOverviewOfEarlyWarning',
    method: 'get'
  })
}

/**
 * 区域分布
 */
export function getRegionalDistribution () {
  return request({
    url: '/v3/warningAndPrediction/getRegionalDistribution',
    method: 'get'
  })
}


/**
 * 分类统计
 */
export function getClassifiedStatistics () {
  return request({
    url: '/v3/warningAndPrediction/getClassifiedStatistics',
    method: 'get'
  })
}


/**
 * 高频词
 */
export function getHighFrequencyWords () {
  return request({
    url: '/v3/warningAndPrediction/getHighFrequencyWords',
    method: 'get'
  })
}

/**
 * 预警事件列表
 */
export function getEarlyWarningStatus () {
  return request({
    url: '/v3/warningAndPrediction/getEarlyWarningStatus',
    method: 'get'
  })
}

export function getOverviewOfEarlyWarningDetailList (params) {
  return request({
    url: '/v3/warningAndPrediction/getOverviewOfEarlyWarningDetailList',
    method: 'get',
    params
  })
}

//

export function getEventListDetail (origin, eventId) {
  return request({
    url: `/v3/governanceElements/getEventListDetail/${origin}/${eventId}`,
    method: 'get',
  })
}
// 视频类型
export function getVideoContentType () {
  return request({
    url: `/v3/warningAndPrediction/getVideoContentType`,
    method: 'get',
  })
}